<template>
    <div class="index">
      <router-view/>
          <van-tabbar v-model="active" route>
        <van-tabbar-item icon="home-o" to="/index/home">首页</van-tabbar-item>
        <van-tabbar-item icon="apps-o" to="/index/search">分类</van-tabbar-item>
        <van-tabbar-item icon="eye-o" to="/index/find">发现</van-tabbar-item>
        <van-tabbar-item icon="shopping-cart-o" to="/index/shop">购物车</van-tabbar-item>
        <van-tabbar-item icon="user-o" to="/index/order">我的</van-tabbar-item>
      </van-tabbar>
  
     
     
    </div>
  </template>
  
  <script>
  export default {
      name: 'HomeView',
    data(){
      return {
        active:0
      }
    },
    methods:{
      toMine(){
        
      }
    }
  }
  
  
  </script>
  
  <style scoped>
  *{
    margin: 0;
    padding: 0;
  }
  
  .tabbar{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ccc;
    box-sizing: border-box;
    background-color: white;
  }
  
  
  </style>